<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Trace Flamegraph - Speedscope</title>
</head>
<body>
  <div id="app"></div>
  <script type="module">
    import { openFileFromText } from "https://cdn.jsdelivr.net/npm/speedscope@1.16.0/dist/es/speedscope.js";

    const profileText = `{{.EscapedJSON}}`;
    const blob = new Blob([profileText], {type: "application/json"});
    openFileFromText(blob, "trace.json");
  </script>
</body>
</html>